package com.wolf.gulimall.product.feign;

import com.wolf.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * 库存服务调用
 */
@FeignClient("gulimall-ware")
public interface WareFeignService {

    /**
     * 根据商品ID,判断是否有库存
     *
     * @param skuIds 商品ID结合
     * @return 库存数据集合
     */
    @PostMapping("/ware/waresku/hasStock")
    //@RequiresPermissions("ware:waresku:list")
    R getSkuHasStock(@RequestBody List<Long> skuIds);
}
